package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.YWStoreCate;
import com.ecoolex.discount.sales.entity.YWStoreCateExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface YWStoreCateMapper {
    long countByExample(YWStoreCateExample example);

    int deleteByExample(YWStoreCateExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(YWStoreCate record);

    int insertSelective(@Param("record") YWStoreCate record, @Param("selective") YWStoreCate.Column ... selective);

    YWStoreCate selectOneByExample(YWStoreCateExample example);

    List<YWStoreCate> selectByExample(YWStoreCateExample example);

    YWStoreCate selectByPrimaryKey(Integer id);

    YWStoreCate selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") YWStoreCate record, @Param("example") YWStoreCateExample example, @Param("selective") YWStoreCate.Column ... selective);

    int updateByExample(@Param("record") YWStoreCate record, @Param("example") YWStoreCateExample example);

    int updateByPrimaryKeySelective(@Param("record") YWStoreCate record, @Param("selective") YWStoreCate.Column ... selective);

    int updateByPrimaryKey(YWStoreCate record);

    int batchInsert(@Param("list") List<YWStoreCate> list);

    int batchInsertSelective(@Param("list") List<YWStoreCate> list, @Param("selective") YWStoreCate.Column ... selective);

    int logicalDeleteByExample(@Param("example") YWStoreCateExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}